Minor tweak to date handling during state<->XML
Change close -> end in CSS class names
WIP: test item rendering now updated
WIP: Continued tidying up test rendering
Tidied up previous few commits
Started test rendering service refactoring