xs: implement the 'write' subcommand

Signed-off-by: David Scott <dave.scott@citrix.com>
xs: add a 'directory' subcommand

Signed-off-by: David Scott <dave.scott@citrix.com>
xs: add 'wait' subcommand

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