Added Environment.getMainTemplate() and Environment.getCurrentTemplate(), deprecated Environment.getTemplate(). These can be useful for directives and methods that are called from templates to find out which template they were called from.