Merge pull request #2 from levsa/master

Pick port number randomly, try more to find free ports. Configurable port range.