Added Dispatcher::setListenerFilter

Added a way of filtering listener methods that are registered to listen
for events using a regular expression.
Fix up event dispatcher unit test.
Deprecate Dispatcher::setListenerFilter
Deprecate test method.