First draft of (working) email notification subscriptions. Many hacks
still exist. The worst one is the usage of the built-in PHP mail
function instead of the Moodle Messages API.