Serverside includes for emails

This patch adds the ability to inject serverside includes in emails
Additionally improves the html in base.html so that it is always clear
what is the name of ssi relevant for current SSI.

This pull request fixes #445