HtmlProvider improvements

* Fix #565
* Fix quadratic performance problem
* Improve debug
* Fix nameclashes in html 
* Correctly report file not found errors on html provider
* Consider tables with just one colum as layout tables 
* Use 1-based index to be consistent with CsvProvider