fix some bogus html.
begin adding report editing facilities.
initial support for images in reports.
clean up some code for report ui.
add some memoization to the record formatting for reports.
Merge branch 'report-images' into develop