Changing IPAL to work with Moodle 2.7

This involved extensive changes, indluding changes to the language file.