Move the chat server setup to a new file