Check multiple ports for availability

If we want to run multiple instances of the test server at the same time
we need to be able to start the server on a different port. This is a
basic attempt to look for an available port if the default one is
already in use.