Adding a basic test infrastructure and a few tests (closes #12)
Should be able to call constructor with no arguments
Properly catch exception when calling WebSocket.send() (fix #18)
Wait for the socket to fire an event to recover.

This fixes a bug because I would manually start a recovery but the socket
would also fire a socket-error event which would cause another attempt to
recover. Very quickly, each attempt would multiply and it got really
really messy...
Update tests for previous bugfix and de-comment one test

 * A socket send error should not throw an error right away - we will wait
 for the socket to send the error itself.
 * De-commented the auto-reconnect test. Use setTimeout() instead of sinon.tick()
Remove one useless line
Replaced try/catch with a callback

Done this to follow ws error-handling best practices (see https://github.com/einaros/ws/blob/master/README.md).
Bump to version 0.3.3 - and release!
Merge pull request #19 from oortcloud/error-notopened

Add some test and fix a rare network condition that caused a crash