For days, the fate of roughly 90 million Iranians has appeared to swing between war and peace as U.S. and Iranian officials traded threats of attack and calls for diplomacy.