Add return value to sendmsg.
Test for webrtc sockets.
Minor fixes for webrtc test.
Merge pull request #1513 from modeswitch/webrtc-tests

Webrtc test
capture charCode field of keypress events to backfill keydown events