Cleaned mako template loading to permit csrf_token insertion