fixes #7586 - user preferences for receiving mail notifications

Adds a framework for user-selectable mail notifications.  The work is
still done in ActionMailer classes and launch by rake in cron, however a
wrapper called MailNotification is used to provide RBAC and make the
association with users.

Plugins may seed their own mail notifications, see
db/seeds.d/16-mail-notifications.rb for an example.
Yes, but I don't want to show the full list, I want it to be confined to what the user has rights to, which means some javascript trickery + somehow using the auth system *before* the user is saved, I was thinking that's  a lot of work for not very much gain.