Adding method to check if template exists.
Adding method to return raw template.
Adding REST API resource for templates.
Adding ability to render templates via REST API.