Attributes for email templates rendered conditionally, more added

This fixes #368 @ChrisBr @hennevogel please review
Sounds like a plan...