Implement and test HTTP API for deleting a template

Implements DELETE /template/:template_id