XE-1418: Synchronize XWikiPreferences in the subwiki UI.

* Fix some problems introduced by the previous commit:
** Re-enabling the custom displayers.
** Re-setting the parent page.
** Re-setting the "undelete" right
** Removing the "programming" right. It should not be given on subwikis and I don't think it really works.