Fixed issues with renaming

- summary is now untouched on rename instead of bogus incrementation
- fixes "Share" status icon by only triggring "fileActionsReady" once
- row is now reinserted even when rename is cancelled, this removes the
  hacky/buggy code that tried to rename the element back
- added unit tests to cover the fixed cases
only start migration if the encryption was initialized; allow to overwrite keys if no files exists
Fixed download URL in public page
Fixed JS issues in public page

- fixed subdir detection when uploading into subdir
- add class detection before overriding to avoid JS errors
Merge pull request #8637 from owncloud/enc_improved_error_handling

[encryption] improved error handling during password change
Merge pull request #8646 from owncloud/publicshare-fixes

[master] Fixed for public link page
Merge pull request #8612 from owncloud/share-updateshareiconsafterrename

[master] Fixed issues with renaming
Dont scale up the preview for publicly shared images