Simple chat server and client implementation