Completely replace HTMLIndex class

This patch removes the need for the HTMLIndex class by reimplementing it
directly in the mako template. This results in a slight amount of
overhead on a clean run (since mako generates python from it's
templates), but removes the need for an entire class that only added a
layer of abstraction to the process.

Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com>