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

- improve backward compatibility