fix custom routes defined by apps
Fix getRawPathInfo for the '/' edge case
Merge pull request #6084 from owncloud/fix-app-routing

fix custom routes defined by apps