Adding some fixes to the core.websocket provider to work with node.js
Buffers