Allocate ports for tests automatically.

This should solve some issues with stalled tests
like https://travis-ci.org/shazow/urllib3/jobs/9256290.