CRM-12924 and CRM-12940

Searches and adv search panes via queryObjects hook, exposing searchable fields.