Use phantomjs for integration tests

Phantomjs ignores the proxy set via --proxy=localhost:9999 for localhost/127.0.0.1 so we work around using 127.0.1.1 to connect to the test pages