enable e2e testing on travis

Enable PhantomJS-based e2e testing on travis. PhantomJS will be used to
test pull requests, because it doesn't require use of SauceLabs and
thus does not require protected credentials.

This commit uses PhantomJS for both pushes and pull requests because it
is for testing the pull request scenario specifically.