Allow using pathinfo based public.php paths

This allows using paths like `owncloud/public.php/service/bar` just like is possible for remote.php services

Part of the work for #7221

cc @karlitschek @DeepDiver1975 @PVince81