Relativity Thermodynamics and Cosmology