Split chatserver, chatclient, and chatconsole into three individual classes