Move socket.io logic into communication.js and count live users