Added delete operations support to TemplateRestRepository.
Fixed indentation.
Made TemplateRestRepository more configurable.