add Contacts.searchKeys function to search for key with a certain attribute.
Avoid adding contacts with the same keys twice. Fixes #172.