Let test.lua take an argument for the format to use.
html writer - fixed list bugs.

Only test failure now is with image-in-image.