Iran's president has died following a helicopter crash on Sunday, but who was he, and how did he come to lead the Islamic Republic?