Remove CodeGenerator API

It was an early exploratory attempt at code generation, and not
currently in use by the system anywhere. It will be done differently.

As this removes API, it is a breaking change.