generator: emit one cmdliner term per request

We also split the generator into parts: an argument parser/driver,
a set of common conversion functions, and 2 backends: one for generating
the 'library' and one for generating cmdliner 'terms'.

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