Make generated source files self-contained
Partially rewrite codegen.py

o Reduce the number of command line options (remove unused ones)
o Group code generation code based on file type rather than entity
  type
Move cidl.py from cidl/ to scripts/