All connection handling not in socket.js