Added bootstrapping functionality for automatically caching templates on page load