Add a search function for contacts.
Unify pocket delete code.