When Mahmoud Ahmadinejad became Iran's president seven years ago, he made his presence felt through incendiary statements targeted at Israel and the west. Now, in his dying days in office, he is going out all guns firing. Only this time he is taking aim at the edifice of the political system that championed him.