various changes to update for Moodle 2.7+
Merge branch 'journalfor27' of https://github.com/drachels/moodle-mod_journal into journalfor27