Add ssh.Run and a test; minor refactor of ssh lib