[WIP] Typeahead 0.10 searchbar adaptation

Fix for typeahead in the main searchbar. There are also some generalizations in the parser to allow modifying syntax model.

Work in progress branch - do not try to merge.