Check duplicate files

Resolves #16 

I changed the way some stuff works significantly so there might be stuff I didn't test thoroughly enough (like regular FTP uploads)