added class Server, ability to register and unregister clients