Minor improvements to Templating

* Will default to the UI language if lang_code is null
* Output format can be specified in constructor args.  Value is sticky.
* More logging.  Always identify template by printing the intended parameters.

Change-Id: I69d3f15cae566bfb454ab36be6fe2e4361d96e49
Merge "Minor improvements to Templating"