Shanghai and the Edges of Empires