fixed some problems

- deleting files and folder should work now.
- handling for share-keys seems to be incomplete

this fix was tested with the latest files_encryption branch 
@schiesbn please merge this into files_encryption