The Transport Of Cosmic Rays And Their Impact On The Thermal Evolution Of Galaxy Halos And Clusters