Improve reconnection of socket.io

![downtime](https://cloud.githubusercontent.com/assets/18702/2598464/31a5ef9e-bac8-11e3-8c8f-0d294687496f.gif)

Provides better support for the feature above.