* Made close() private. * Removed autojoin capability. This is not something the framework should decide, at least, not the way it was implemented. * Moved authentication to its own method. * Added a default event, for commands that we don't know how to handle. * Renamed init_socket to connect. It sounds better. * Added a connect event, which is run after authentication.