Since his election in June, Iran’s new president, Hassan Rouhani, has signaled a more moderate stance in his country’s international relations. But the world’s second-largest oil producer remains a danger not just to Saudi Arabia but also to peace and stability in the Middle East and beyond.