Recent activity: support for moodle 2.7

Support for Moodle 2.7 event based logs. The retro-compatibility
for the older versions that are still using the log table is
in place.