Implemented base chat server. (Need test with clients)