Removed some dead code.
Moved most of the generators code into a cpp file.

Since it doesn't use templates, it doesn't need to be in the header.