Fix some minor bugs in webrtc stuff, inline API code.