refactored safe upload task, added new task to clean temporary/backup direcotories on server ref #2