Add C gen part of new C++ wrapper generator

Going to stub this out of module for now, for easier reloading.