Fixes #2 and implements socket.io disconnection logic and artemis server reconnection timeout