added method to register user in the server in the socket interface and added dictionary to map commands to functions in the ircbot