1) On the Egyptian side, the military were never out of power. Morsi was never a real power, he served at the leisure of the generals. 2) In America likewise. It is more complex, too much to explain here, but Google Sibel Edmonds and listen to her and you get a better sense of power centers in America. Like Egypt.
Yemen's vice president reportedly lands in Aden (Reuters)
from the article: Obama urges Egyptian military to quickly return to democratic government