Hassan Rouhani is Iran's next president after appealing to tradition, reform