President Rouhani has slowly expanded social freedoms since coming to power. Iran also signed a pivotal nuclear pact under the cleric's stewardship.