Thermal spin transport and applications