XWIKI-10510: Add ability to send emails from a Template document containing a XWiki.Mail xobject

* Impement DefaultMailTemplateManager
* Impement TemplateMimeMessageFactory