enhancement of ProvidesEvents trait

using this trait as it is forces to override the method setEventManager if one wants to attach some default listeners to the event manager instance. thus i propose the change that the trait looks for a method named attachDefaultListeners and calls it if existing.