It remains to be seen whether democracy has anything to do with all this. So far all we have is a mob and some grim behind-the-scenes powerseekers waiting to pounce.
As for the military, who knows what their true allegiances are. The lesson of Turkey is that the military today is no guarantee against islamic fascism.
That's exactly the same thing I was thinking. Obviously, this could still go the way of Iran with an abrupt installation of Islamic radicals, but I suspect Turkey would be a better template, with the radicals slowly infiltrating the military and incrementally taking control over the next decade or so. The end result will be the same, but a sudden revolt and seizure of power might actually receive some international condemnation.
Right now, the MB still needs the sympathies and numbers of the communists. There will be time to purge them later when nobody's looking.