Made integration tests headless.

Using PhantomJS. Should work on Travis now.