formatter: add template support
This lets all the non-log commands that use the formatter use
templates. There are still some things that don't work, for instance:
- color (needs "repo" in map)
- shortest (needs "ctx" in map)
@echo offrem launch hg.exe from parent folder"%~dp0\..\hg.exe" %*