XWIKI-8744: Introduce per wiki distribution status
* refactoring distribution template