Add karma tests to `npm test`.

Modify test.e2e/test-server.js to optionally run another command
(karma) once the test server is up and listening.

/cc @ritch