Use cmdliner for command-line parsing and manpage generation

Note this is a backwards-incompatible change to the command-line arguments.
Where an argument was previously '-foo' it will now be '--foo'. Where an
argument was a flag '-flag' it is now '--flag true'.

Signed-off-by: David Scott <dave.scott@citrix.com>