Added a customer search dialog with queries. Various other fixes.