Moved PortFinder from test to main.

The PortFinder class allows for easy discovery of unused ports for testing. This pull request just involves moving a single file from the test/ directory tree to the main/ directory tree.