Configurable template engine + support for Mako

Make Cheetah optional by rendering path names with a custom function and make the template engine configurable.