Take some precautions when (un)registering tasks/event handlers.
Add some more MUC functionality.

The code kinda sucks, though.