Preliminary chat server implementation