Added template caching and routes
Added template caching and routes