worked on off

Added ability to filter events based on functions or regex. Also
implemented handler traversal to remove any .when trackers on any
associated handler that is removed.