Check compatibility for Moodle 2.7, add some functionality (see README file for details)