componentmanager: Create events object for configured hosts, and carry it over to a new component if one is registered with no events object

Merge backout with following commits

Backed out changeset 98f0e9eadf3b (better fix on the way)

Automated merge with http://waqas.ath.cx:8000/

mod_iq: Fire sub-events for IQs directed at bare JIDs and hosts

modulemanager: Keep track of event handlers added by module:hook, and remove them on module unload

stanza_router: Don't route before firing events... waqas, is this safe?

componentmanager: Add events object to registered components if they don't already have one

stanza_router: Fire global event if host doesn't have events, fixes #103

net.xmppclient_listener: Add small comment

(0) -1000 -300 -100 -10 +10 +100 +300 +1000 tip

mercurial