Registering with a Room

Added support for a user to register with a room (http://xmpp.org/extensions/xep-0045.html#register).