Improved Template error handling somwhat

Exposed TempFileCollection, still need to implement support for
TemplateException and CLI + Repository