Added the page BookVersions.Code.ConfigurationObjectsToRemove which is the configuration page to set the objects to be removed at publication.
The default configuration is: XWikiComments, XWikiRights and XWikiGlobalRights