Allow soft-deleting of templates

We can't really delete the templates from the system as that would break existing slides using that template. We instead set the new deleted column to true and hide that template from all selection lists.