TOR coordinates with transcriptional and chromatin machinery to regulate thermotolerance and thermomemory