Use npm to manage Node dependencies

I have changed the build process to use `npm` instead of submodules and added a line in `setup.sh` to call `npm install`
I have taken the liberty to go back one commit from the current HEAD.
Please suggest modifications/improvements