46: Log the results of email sending to a 'EmailLog' collection
46: Treat 'EmailLog' as a special type of model in methods
46: Added a 'usertype' property for the EmailLog model
Fix checkPerms() to use user object from parameter
Fixed setting of 'messageid' field on EmailLog inside sendMail() method