Moves add friend logic to the cloudkit manager