Implement /templates.js endpoint.

Serves Handlebars runtime, user templates, partials, and helpers.