Template Kung-Fu

So, not really kung-fu. 

Moved templates that are used by layers into their own directory, cleaned up and added comments to templates, and used utils.template_render instead of stripping the templates everywhere. This hopefully makes some strides towards sanity with the templates.