Refactor HTML processing logic from generate-feeds into modules

This will allow other scripts to reuse the same HTML extraction
logic
First pass at an index page generator
update-indices: HTML5 tidying

After some testing, the cleanest solution appears to be shelling out
to tidy-html5