Thermal Effects in Plasticity. Part I: Coupled Theory†