New branch for Moodle 2.7.
-Update some files to new Moodle 2.7 APIs