Added support to listen on interfaces and superclass's of events.
Added tests. Updated .gitignore.