fix allowed rename of folder in root directory to reserved name "Shared"

refs #2159
wrong root dir name
string comparision
[files] refactoring
[files] fix typos
[files] kill stripslashes
[files] remove normalizePath on rename and dependency injection
[files] rename tests
[files] remove realpath in test
[files] rename test class and add rename test
[files] ownCloud typo
[files] rename lib to "App"
[files] fix mock creation and remove hardcoded 'require' statement
[files] add private declaration of $view
Merge pull request #2821 from owncloud/fix-2159-rename-to-shared

fix allowed rename of folder in root directory to reserved name "Shared"