BEIJING—From riot back to the assembly line—the iPhone 5 demands it. The Foxconn plant that workers say makes the iPhone reopened on Wednesday after shutting