Add email helper functions

Added helper functions in email.js to send various notification emails to users.