On the use of stochastic differential geometry for non-equilibrium thermodynamic modeling and control