work on search stage 2

This move the maps, layers and documents explore to use the search engine. Does some cleanup on the search using again the original normalizers, and adds some sorting options. Also fixes the header search free input.