Adding quotes - necessary for themes containing spaces in APPLICATION_NAME
OS X: Workaround Qt5 QNAM bug

This made the sign out/sign in handling not work.

(cherry picked from commit 104cf680a60d51587fe44392351070453b18778d)
Fix problems if a file is moved, and another file is created with the same name
Fix removing and renaming directories from the Shared directory
Merge branch '1.5'