Implement templates

Site new uses (crude) templates to display pages instead of hard coded HTML with print statements.