MDL-45216 events: Update to core/event/manager to return observer information.
MDL-45216 events: Unit tests for core/event/manager.

This includes unit tests for the new method get_all_observers
and updates to other methods that have been updated.