Install karma and phantomjs using npm.

By wrapping the call to karma from SBT with a shell script, npm can be invoked to install karma and phantomjs as project-specific node modules. phantomjs is also picked up later by the selenium driver for acceptance tests.