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

- fix stupid bug that cause the backward compatibility to not work at all