XWIKI-8744: Introduce per wiki distribution status
* make distribution state calculated dynamically and have different API for farm and wiki
* provide distribution state in job status to compare with previous state