added #set_primary_identity method. changed #add_identity to #create_identity and created an alias for backwards compatibility.