Run qunit tests via phantom in 'npm test' rather than .travis.yml.

This makes it easier for developers to verify that everything in their repository works, without having to manually run the qunit tests or wait until Travis runs them.

It also paves the way for doing integration tests where e.g. we set up a test database and verify that the web client works as expected.