Redetect mime type whenever extension is renamed
Update file list entry on rename

Whenever a file is renamed, if the extension changes, the mime type and
preview might change. This fix passes the updated info to the client
that updates it.
Fixed unit tests for ajax rename
Merge pull request #6089 from owncloud/files-mimetyperefreshafterrename

Redetect mime type whenever extension is renamed