XWIKI-9149: Add CSRF token verification to the Solr administration section
* A bit of refactoring to improve the code readability.
* Don't show the wiki selector in subwiki administration.