Move consistency-check module from enterprise to community
Small cleanup
Add store consistency checks to store migration tests

o small cleanups and refactors
Merge pull request #2730 from davidegrohmann/2.1-consistency-check-upgrade-tests

Add store consistency checks to store migration tests