Fix some obvious bugs:
- max port number should be 65000 not 650000
- need to stop the keep-alive thread

Find a free port for RTP streaming more efficiently, and check for adjacent ports just in case we need RTCP.