Implement use of Moodle messaging API

See Anthony's comment over on Moodle.org:

    https://moodle.org/plugins/view.php?plugin=local_tdmmodnotify