How to tax the platform economy?

In the engine room of nation states, ie the tax departments, the coming battle with platform providers is taking shape. Uber, airbnb, facebook, linkedin, ebay,...