Fix Travis builds (hopefully).

* Make ports more Travis-friendly.
* Tweak .travis.yml to use xvfb and redis/memcached