On Decentralizing Prediction Markets and Order Books