cli: streaming: move some of the input validation to streamCommon.ml

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