Html tests

The main new file is test_html_render.py; the other tests & circle are included in a previous pull request (sorry). I have to delete charlie's files a lot to get upstream master to merge....