WIP: Add OAuth->browser plumbing.

We are trying to keep it similar to what is going into the browser module.
See draft https://developer.mozilla.org/en-US/docs/Mozilla/JavaScript_code_modules/WebChannel.jsm