Merge pull request #106 from nedgot/stable-5.0.x

XWIKI-9126 Show panel only if the user has the view right
XWIKI-9126: Show panel only if the user has the view right on the panel page
* Add functional test.

Conflicts:
	xwiki-platform-core/xwiki-platform-panels/xwiki-platform-panels-test/xwiki-platform-panels-test-tests/src/test/it/org/xwiki/panels/test/ui/PanelTest.java
XWIKI-9131: xwiki.virtual_mode propety is inserted at the wrong location in the hibernate configuration file
(cherry picked from commit 57775e798bad5fcf21b31218d05b3ebf5d1dc250)
XWIKI-9116: Deleted pages are installed again after a Distribution Wizard upgrade
(cherry picked from commit 9d9722296c96603c118f7427fa79f1ef066cd81b)

Conflicts:
	xwiki-platform-core/xwiki-platform-extension/xwiki-platform-extension-handlers/xwiki-platform-extension-handler-xar/src/test/java/org/xwiki/extension/xar/XarExtensionHandlerTest.java
Fix jacoco setup
(cherry picked from commit caaadf25a09655d10cb258c1694b0cdee2f85504)
XWIKI-9132: It's possible to get the Distribution Wizard with a COMPLETE state if there is still something to do
(cherry picked from commit 00609583bb0d2471b7111855bf394c9ec473e385)
Packager plugin integration tests (package-simple) fail if xwiki-commons-tool-xar-handlers is not present in the local maven repository.
XE-1298: Spaces macro doesn't list spaces that contain a colon in their name
* Fix also the xwikivars.vm template which was causing the same exception to be logged.
(cherry picked from commit dbdbcd15adb9d0cacf322ef31cd2f6bd90feb467)
XWIKI-9150: Only half of xwiki.virtual.failOnWikiDoesNotExist option is implemented

Conflicts:
	xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/XWiki.java
XWIKI-9153: hibernate.cfg.xml is not properly generated for pgsql
(cherry picked from commit 9e5c24f759d45fcdc3e574bbb4298b8e4bb197c3)
XWIKI-9004: Impossible to use PostgreSQL without defining the xwiki.virtual_mode hibernate property
XWIKI-9159: XWikiContext#getWikiServer() is deprecated without any replacement and does not work on subwikis anymore
(cherry picked from commit ffd2e64d739d58d0deda14f88ac75fc1d81dd7a0)
XWIKI-9159: XWikiContext#getWikiServer() is deprecated without any replacement and does not work on subwikis anymore
* fix log
(cherry picked from commit df885a7ab38611805556ee2458446ec12287de0f)
XWIKI-9004: PostgreSQL wrongly tries to switch to the schema with database name when in database mode
XWIKI-8971: Several documents have no parent set after importing the UI from the XAR
[release] Update translations
[release] Update version after release
XWIKI-9182: The "Delete Space" feature does not work if a space is marked as "hidden"
XWIKI-9182: The "Delete Space" feature does not work if a space is marked as "hidden"
* Optimize performances so that only query is executed against the database
XWIKI-7403 setting the expected language