Improved templates

layout.html for all the shared html, everything else extends it.