Add SR.scan with a simple unit test

Signed-off-by: David Scott <dave.scott@citrix.com>
debug: flush stderr after every line

Signed-off-by: David Scott <dave.scott@citrix.com>
Use the name 'command' everywhere to make each script more similar

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