Add codegen scripts, based on the ones in gtkmm.

This makes it easier to generate the defs and docs.xml files.