More sophisticated port-ranges, better error handling
Properly break out on success
Use new djangorestframework 3.0.x
More automatic port-finding improvements for tests, more reliable now.