Added register methods to Server. Fixed nick handling from server.