Implement and test HTTP API for template listing

Implements GET /template