Thermal And Magnetic History Of Rocky Extra-Solar Planets