The duality of stability: towards a stochastic theory of species interactions