Bug 1001322 - Move wait_for_port to transport.py and call when starting a new session. r=mdas