Make templating more general. Start handling pages that don't exist