made main function, reworked a lot of code
Some more stuff, still need to work on testin
Merge branch 'master' of https://github.com/SamuelWeiss/sftpBackup
a lot of changes, reorganization and threading