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.