templates can now be rendered with a layout

see: http://carlosgabaldon.com/articles/tornado-templates/ for details