Copy ssh_runner.py from github

Copied from Justin Azoff's "apitest" repo on github.
Remove unused code in ssh_runner
Minor coding style changes to ssh_runner