Refactored, reorganized and added mail.js which can be used to send emails using cordys send mail service