xs: start porting the CLI to new CLIENT and to cmdliner

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