move webrtc typings customisations to a separate file

So we can better keep track of our modifications. Also added lots of comments explaining the additions.

Tested with `freedomchat`.

Fixes:
https://github.com/uProxy/uproxy-lib/issues/37