A century ago, the British empire used to administer China’s customs service, collecting taxes that helped to service the country’s foreign debts.