Improved listener class matching

Added the ability to specify the parent class or interface in the "class" option of the listener or the subscriber.