General Prediction Markets