Add Mailer class

Mailer is a wrapper for PHP mail() intended to provide common gateway
for all mail related tasks and therefore make it possible to hook into
and alter and/or replace them whenever necessary.
Use Mailer instead of directly calling PHP mail()