Npm-run job is now lifecycle aware.
Npm-run job is now lifecycle aware.

This patch simplifies the invocation of npm commands, by allowing
the npm-run job to invoke both lifecycle commands and custom
scripts. This is needed because invoking the above is inconsistent.
Here are some examples:

Works:         npm run lint
Does not work: npm lint
Works:         npm run test
Works:         npm test
Does not work: npm run pack
Works:         npm pack

Change-Id: I2e02d65ccfd8eb9e8086b735ac36f2e855cbcbde

dongwenjuan/project-config,openstack-infra/project-config,Tesora/tesora-project-config,dongwenjuan/project-config,noorul/os-project-config,noorul/os-project-config,openstack-infra/project-config,Tesora/tesora-project-config