Simplified and HTML lowered statement dumps

Initial import, adaptation, and cleanup of statement simplification, HTML dump. Original code by @zingales. This needs a review.
Existing style in Halide has a space between "for" and "("; please follow that style here and elsewhere