added mailer support, sendgrid in production, mailcatcher in dev