Support assigning 0 to http/https port for OS assigned port.
Merge pull request #414 from johnrengelman/random-port

Support assigning 0 to http/https port for OS assigned port.