Borrowed zeebo/gostbook's simple template caching system
Implemented protected endpoints and modified auth skeleton