Flash Catapult support via a TCP socket.

Will contribute all this in an upstream PR soon.