Add API endpoint to run compiled templates

Fixes gh-266