Wire up templates for summary messages.

Now they're usable, with `--template=FILE`, but there's still some work
to do to make them actually useful (functions/some standard stuff).