XWIKI-11486: Batch API to send large volumes of mail
* Fix dependencies
* Removed dead code