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

- Fix more test failues