Full support for both browser and node
added node support and checks.
these allow the same WS.js to be used for webpack, browserify, and node.
pure vanilla browser implementations without webpack, browserify or similar commonjs compiler can still use ws-share-vanilla.js