Preparation for new file transfer
Preparation for large file transfers
Various improvement

Aka this commit is a mess, if you're bissecting this, good luck :)
Fix crash on file transfer completed
Rebased on master
Fix FT progressbar int overflow