Choose server ports more reliably

Specify :Port => 0 for WEBrick::HTTPServer.new and
obtain the port number actually bound.