Rouhani’s surprising victory in the presidential election represents a significant shift in the Iranian political landscape.