adding npm submodules and scripts
Merge pull request #2024 from sebv/npm-submodules

Adding npm submodules and scripts + test fixes