HTML file generation fixes. Add support to use TidyLib.