ENHANCEMENT: Add $BaseURL for use in email templates

Adds the ability to specify $BaseURL in email templates, so that you can link 
images etc. directly from the website that sent the email.