Implement task revoked notifications

Adds a core handler for task revoked notification events. Also adds
two new email types related to this notification one for users, the
other for subscribed users.
Fix double encoding in emails

Create a new function for getting strings from the DB which
allows utf encoding. Updates all model generators to use this
function.