extractorapp - Improve mail templating system (#750)

Implements the possibility to add custom key/value pairs replacements in
the templating mail system.

Manually tested. Might need some modifications in the georchestra/template configuration profile, but should remain compatible with current existing configurations.
strange indentation here and there ...