don't use glob() and getLocalFile(), this can lead to problems on windows servers
add missing preview link
fix getVersions() for sub directories
some small changes/fixes
make files versions root a class constant
some small fixes
Merge pull request #5261 from owncloud/versioning_no_glob

versioning: don't use glob() and getLocalFile()