Mock a the minimal subset of WebRTC for testing.

The intent of this PR is to introduce a basic mocking of the WebRTC API.
Thanks. I realized the inadequacy of my initial approach once I actually added validation. The original STATE variable was just to avoid having strings everywhere.