XWIKI-10510: Add ability to send emails from a Template document containing a XWiki.Mail xobject
* Moved interface to internal for now
* Moved all template-related code to a template package

+ Added missing @Unstable