Add Karma test runner.
Add NPM scripts.