XWIKI-9516: Create a new Wiki API that replaces xwiki-platform-wiki-manager and xwiki-platform-workspace.

* Bug fix: XWiki.XWikiPreferences was not copied from template