Add assertions. {{!foo The foo}} will generate a warning referencing "The foo"
if the variable foo isn't found. Also clean up a bunch of the crufty code that
had accumulated; overall negative diff.