A Theory of Generalized Coordinates for Stochastic Differential Equations