Jon socket fixes

Minor changes that enable [`node-websocket`](https://github.com/sitegui/nodejs-websocket) to run on Tessel.