XWIKI-9566: Make extension script service extensible
* Replace the usage of deprecated methods.
XWIKI-9592: Don't show backward dependencies from other wikis when we are on a subwiki