Module definition: check name is not null before version for better error messages

Change-Id: I360b652eb44ec78c9e3c3d8a545555efaf99634d
dependency ROMs as devDependencies

Change-Id: I12691e112b7f838c6bf76210d82a48053ee71967
install dependencies on prepublish if they are not available yet

Conflicts:
	src/main/templates/npm/model_Gruntfile_js.ftl
	src/main/templates/npm/model_package_json.ftl

Change-Id: Ie5671917f6e9a5f343a42f8d3cae96d591aa0c2f
scripts.prepublish as external Node.js script instead of inline bash

Change-Id: Ib56c1c274a1dec3e31bdd1a8422cb1b12946ce7e