Forty years of absolute rule over Iran: who was Khamenei and how did he come to power?

Close relatives and friends of Ali Khamenei say he played blurbs, was interested in poetry and piped. These were characteristics that created an image of Khamenei different from that of other clerics. So, who really was Iran's most powerful man in years past, and how did he rise to this position?