Enable search and maintain state in multitype selector

* enable search and automatically focus on the search box on show
* restores selected type and search term when invoking the selector
  (does not maintain state across page reloads)