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
extend OCS Share API to allow the user to ask for files shared with him
Added sharing overview page (WIP)

- added sharing overview entries in the sidebar
- use OCS Share API to get the list of files
Group shares by type
Improved FileActions with context

A context hash is now passed to file action handlers which makes it
possible to have file list specific file actions.
Fixed file actions for sharing views

FileActions can now be clone to be use for separate file list views
without having the side-effect of affecting the main file list view.

Added "Open" action in sharing overview file lists to redirect to the
regular file list when clicking on a folder.
Fixed sharing permissions
Removed selection checkboxes
Added unit test for file action context argument
Add unit tests for fileActionsReady
Fixed navigation order
Added "dir" in file actions handler context and fixed versions

Added "dir" in file actions handler context so that handlers can know
what the path of the file was without having to look it up from the file
list.

Fixed versions app to use the context.dir instead of the old $('#dir')
element. This makes the versions popup work in the sharing overview.
Small fixes to sharing overview

- Removed file size from file summary in sharing overview
- Fixed document title
- Fixed empty content text for shared overview
Distinguish legacy file actions from regular file actions

Legacy file actions are registered by legacy apps through
window.FileActions.register(). These actions can only be used by the
main file list ("all files") because legacy apps can only deal with a
single list / container.

New file actions of compatible apps must be registered through
OCA.Files.fileActions. These will be used for other lists like the
sharing overview.

Fixed versions and sharing actions to use OCA.Files.fileActions, which
makes them available in the sharing overview list.