Add Zotlabs\Lib\Mailer class to replace z_mail function.
We keep the z_mail
function for backwards compatibility for now, but
the actual processing is moved to the Zotlabs\Lib\Mailer class. Besides
allowing for a more powerful API in the future, this also allows easier
testing by allowing us to stub email delivery in tests.