Quantum field theories out of thermal equilibrium: (I). General considerations