The Internet held up in Egypt as the military deposed the country’s president Wednesday, with both the former president’s aides and the opposition using Twitter and Facebook extensively to communicate with followers in Egypt and the rest of the world.