Zakharra is right.. one of the most damaging elements of the Wikileaks release of diplomatic traffic last year was the release of DOZENS of messages from all around the Gulf. Gulf leadership all saying the same thing. Ahmadinejad scared the piss out of them. Completely and totally. They ALL want him gone. He is a destabilizing element in the region. The council of clerics are the 'kingmakers' BUT they also recall what happened when things were pushed back in the day, and that several of their forebears were hung by their own turbans from street lights, not to mention what the Shah did to their numbers when he was in power.
Hence they give him the 'role' and let him lead. Now, if he pushes things too far, they speak up..and he knows without their support, particularly after the LAST election, he's got a snowballs chance in Hell of getting re-elected. But don't doubt for a moment if he could drop a nice satchel charge under their table and kill them all and blame radicals/students/US/Isreal/The Boogie Man, he would. They would definitely make nice Martyrs for him to assume a lasting position on.
No one in Iran is safe from his desire for office. I don't see him happily, or quietly, leaving office without trying something. That means bodies on the ground.
Back to his neighbors. I know he'd LOVE to add a chunk (or all) of Iraq to his country. One of the big goals of a LOT of the leadership of Iran, Iraq (back when Saddam ruled) and places like Libya and Syria is there a LOT of folks who would LOVE to be a modern Saladin and create a UNITED Islamic State. Saddam wanted to, I'm willing to bet Ahmadinejad would be happy to do it, and many others think about it in the quiet moments of the day.