Some cleanup for RTSP. Moving RTSP code into a file by itself. Still
need to do more cleanup to break other things out. Had to copy a couple
static functions that should get moved out into a common location.