Implicitly respect the PORT environment variable to make Heroku/CloudFoundry deployment more convenient.

Closes #239.