Despite being hammered by aerial bombardment, the Islamic Republic could yet survive the war and rebuild