SFTP repository transport improvements

More code related to the SFTP repository transport story.