preliminary change to allow namespaced events.
Changed get_next_event to get_event
added fire_event for testing