Refactor template rendering.

Separate package that hides details: type of parser, path to templates, etc.