Adding 2.7 style events for logging
Now requiring Moodle 2.7