Implement and test HTTP API for instanciating a template

Implements POST /template/:template_id