Iranians seeking more freedom at home and less isolation abroad have emphatically re-elected President Rouhani.