more work on HTML templates, including new methods for fetching templates stored locally.