Make filtering of file names configurable

Add a new template_filter key in the main section and use this in
concert with fnmatch's filter method to allow for arbitrary filtering
of the added files. This is much better than just checking the files
end with '.txt'.

Change-Id: Icb75dee301db348328bc4aa533920ec8800d2aba