Simplified and HTML lowered statement dumps

Initial import, adaptation, and cleanup of statement simplification, HTML dump. Original code by @zingales. This needs a review.
Sure, that sounds OK, with the modification that we don't prefix enums/constants with k in Halide.