Forward networking error events to the websocket event listeners.

Handshake failures from HTTP were being fired as errors connection errors failed to show up. Dispatch network failure events (like connection refused, etc.)
Merge pull request #27 from ramsperger/master

Forward networking error events to the websocket event listeners.