Fix SockJS reconnect

Fixes #32 
SockJS never sends an error event, instead it always sends a close event. In the event the server disconnects (e.g. server crash), primus would attempt to reconnect but only try once because it expects an error event on any failed reconnect attempts.

This change will correctly send the error event when the initial SockJS connection fails, which is always the reconnection scenario for SockJS.
Add timeout time argument
Merge pull request #75 from brycekahle/patch-1

Fix SockJS reconnect