Improved message handling during registration and unregistration; added
a progressdialog.