WebRTC fixes

* changed webrtc error messages to errorcodes so that the messages can be translated
* fixed a bug with webrtc call failing at echo test where the window never went away