Implement nodejs's net module.
Merge pull request #1049 from Gozala/bug/websocket@820953

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