XWIKI-9595: Ask confirmation for pages not needed anymore before deleting them
* Add script API to create an uninstall request in order to be able to uninstall an extension in non-interactive mode (required by extension tests).

(cherry picked from commit 4bd19eaefbbdb7b7192db03fd22af2e9770bf73c)