checking for parent object_type for any attribute_name when searching for an id (not just email) and removing ams::package_id proc because it was useless
fixing references to party_id that were not - in search condition types is not an id, its the reference to the party_id column, which might be o.organization_id, or p.person_id or parties.party_id, etc.
removing re-added contact::special_attributes procs because they were moved to to callbacks in the contacts-callback-procs.tcl file, also cleaning up flush proc and making it much cleaner.