Fix parallel scp calls stealing sessions

Collapse the global client into its own thing for whomever uses that. Instantiate a new client with each call and pass that through the function so the global client is not overwritten halfway through if a new client is instantiated.
Syntax fix, missing var
Merge pull request #20 from toddtarsi/master

Fix parallel scp calls stealing sessions