Add API to download a file

Needed when the user receives for example an 'addFileEvent'
Trigger events for all shared files within the folder
Introduce boolean to check whether rollback necessary

Will be removed with the new process framework anyway
Fix errors for merging