Vocab widget: refactor TreeHandler to extend AdvancedHandler
Vocab widget: refactored NarrowHandler to extend AdvancedHandler

(AdvancedHandler is going to become the new VocabHandler; the
heavy UI-focussed functions in VocabHandler will end up in a
UIHandler-like class, that Narrow/Search/TreeHandler can extend)