refactoring logs and fixing exception handling
FAIMS-245: removing temporary file after uploading database
FAIMS-226: refactoring faims client + fixing interrupting faims client
FAIMS-226: fixing terminating tar and untar of files so they can be terminated
FAIMS-226: adding file lock for file sycing + fixing terminating tar and untar streams
FAIMS-292: fixing locking files directory when copying to properly delete lock file after copying is finished
FAIMS-245: fixing removing temporary files
merging master