Did President Obama watch Egypt swing from pivotal ally to potential opponent? Versions of that question have hovered around the presidential campaign from the early Republican primary debates through Mitt Romney’s comments on his recent trip to Israel about the Islamist electoral victories in the wake of the Arab spring.