Replace deprecated get_context_instance() with context_xxxx::instance()

Signed-off-by: Tony Butler <tonyjbutler@gmail.com>
Add support for new Moodle activity logging events API

Signed-off-by: Tony Butler <tonyjbutler@gmail.com>
Bump version number and require Moodle 2.7

Signed-off-by: Tony Butler <tonyjbutler@gmail.com>