Various fixes and new features related to SFTP.