generator: create one module per API command

These are currently in separate files -- would it be better to merge
into one big module?

Signed-off-by: David Scott <dave.scott@citrix.com>