More work on webrtc, final functionality