Relocate api_gen to top level
Run api_gen.py if this is a fresh checkout