Making Markets: How Firms Can Design and Profit from Online Auctions and Exchanges