Expose web-socket API.
Implement socket server.
Merge branch 'bug/socket' into bug/websocket@820953
Update tests to use socket server.
Merge pull request #1017 from Gozala/bug/websocket@820953

Bug 820953 - Expose web-socket API. r=@Mossop