removing debug comments
onAny to complement triggerAny

slightly refactored so that underlying functionality exposed as plugins
(to get and filter list of events)