move PathParser a bit higher up the stack, remove some duplicate code from RemoteStorage