Move caseSensitive related query state to global store
Created by: fkling
First of "many" PRs to move query related state to the new global store. I tried to avoid any unnecessary changes (i.e. it might make sense to restructure some components to make better use of the global store), to not mix migration with any optimization or architectural refactoring.