Add beginnings of IL optimizer.

Removed some complexity from Code Generator.