XWIKI-9566: Make extension script service extensible
* Replace the usage of deprecated methods.
XWIKI-9593: Searching for installed extensions can return results from other (sub)wikis