Port Roslib.js to work on Node.js and Meteor

* Replace EventEmitter2 with Node's built in EventEmitter
* Import the 'ws' package to get WebSocket client functionality