fix file sharing, sharing files works now; moved the identification of file owner and the owner path in the keymanager functions so that other functions doesn't have to deal with it
rename $shareFilePath to $path to avoid confusions, it is not about paths to share files but about general path to files stored in ownCloud