Imported user preference, gravatar and generic mailer support. Migrated
from mailgun to use default SMTP sender, i.e. allows for gmail to be
used as the mail transport.