A thermodynamic basis for transport phenomena in viscoelastic fluids