Public Goods in Trade: on the Formation of Markets and Political Jurisdictions