On Ruelle's Probability Cascades and an Abstract Cavity Method