Added tests and enhanced event propagation

Added attempts count to the `reconnection_attempt` event. A test to see that engine.io errors propagate to the socket.