Ssh and client new

Combines #6 and mine branch. @pitr-ch would you mind to give it a last round of review before merge?