Previous SEBTS changes to Moodle core. closes #1.