Bug 820953 - Expose web-socket API.

WIP