A Non-equilibrium Thermodynamic Framework for the Dynamics and Stability of Ecosystems