Add dialog and screen for Templates.

TT templates are used to  generate documents from table records;
something like mail merge in MSWord, but by using LaTeX.