Set up basic chat message logic with socket.io