Add karma config, NPM package.json and Travis CI config.