The election is a big step toward stabilizing the country. But daunting challenges at home and from abroad await the new leader.