Experimental webrtc support

Adds webrtc-based networking support to emscripten. Switch between websockets and webrtc using the SOCKET_WEBRTC flag.

I did some code cleanup, but this probably isn't ready to merge yet. Feedback requested.