Refactor SFTP stat queues

Move the code to queue and apply file stats following upload and download
to dedicated classes for DRY and complexity.