MDL-46510 tool_monitor: Add an observer to delete data when course is deleted
MDL-46510 tool_monitor: Add unit tests for the course deleted event observer
Fixes that would be merged with previous commit