Metaserver now tests each port in getAvailablePort by starting a server
socket on the port it is currently checking.  If the server socket
starts without throwing an exception we close it and return that port
number as an available port.  If an exception is thrown starting the
server socket we mark the port as unavailable and at no point after
during execution will it mark said port as available.