Simple chat-server with several functions