Only convert .tpl to .dwt for github requests

This PR also updates the local template files.

It looks like github is only used when a caching service is set (not null), and instead falls back on the local templates in the data directory.

I would appreciate it if someone with more experience than I have with this library looked over this change carefully.