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

We also throw a helpful error if phantom isn't found.