Initial import from pubnub webrtc