Templating

moving templates to separate views.  They load inline so the client doesn't have to make extra requests.