LILY-439: Fix template variables not working
LILY-466: Fix email template create
Refactor TemplateParser class and implement more template variables