Added ToMap for config.

I'm already using this to generate JSON and it made template stuff
easier.
Fix up template handling.
Fetch the info in parallel.
Better typing on task data.
Allow template to be specified in file.