Framework for running prediction markets.