Mixing and transport in stars – I. Formalism: momentum, heat and mean molecular weight