WIP more codegen.
First pass at generating everything.