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

(cherry picked from commit fe591d97decbc62ffc220c5fe17e07b70e580c4d)