Rewrite webrtc io

Resolving #3