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

(cherry picked from commit b49d1d72873e6345fd2be05d581eabe4c5639fec)