Ability to have out-of-tree template directories

The use-case here is for us to be able to customise the templates and store them with the rest of our code. Hope this is of interest.