The Economics of Platforms in a Walrasian Framework