HTML typo.
Updated expected HTML.
Removed unused old code.
Adding first output unit tests. Doing some refactoring to improve testability.
Small refactoring and testing of OutputFormat.
Minor fix in whitespace generated from templates. Not
100% sure this is an improvement, but the effect very small either way