if available, use PORT from environment variable for server (bug 1090044)
Merge pull request #744 from cvan/allow-port-to-be-changed

if available, use PORT from environment variable for server (bug 1090044)