Remove the duplicated template functions from several scriptinterface owning classes and instead move it to CTemplateLoader with helpers for registering said functions to the script interface.
With this, a template loader is given to the simulation context as well to access template files directly without going through the simulation component.