XWIKI-10410: Add a new authorization manager component that take care of external context

- revert some changes in the XWikiCachingRightService that broke backward compatibility of PR checking.