Made Conn public again.
Added Connect/Disconnect events using server.On
Tidied up JavaScript.
Added travis script.