Well, I think the situation has been summed up quite clearly, and as such the only thing the outside world can do now is wait and watch.
Any state that must resort to making examples of people with brutal torture or execution in order to stay in power has definitely lost its legitimacy. Before the world decides on a course of action, we should wait until we know what really happened in the election. If it comes to a revolution, I would like to see the U.S. back the progressive elements in Iran. I do not think military intervention would be wise, but arms procurement and fiscal support would be in order.
It's scary how quickly things went haywire there.
And on the topic of nuclear weapons... AFAIK the Iranian government has not yet succeeded in building a true nuclear bomb. Correct me if I'm wrong, though. Haven't seen anything about an Iranian nuclear test.