Improvements on notifications for teachers and managers

Some improvements on email notifications as discussed here: https://moodle.org/mod/forum/discuss.php?d=189334#p1152457