Text this: Solving the Hagedorn temperature of AdS5/CFT4 via the Quantum Spectral Curve: chemical potentials and deformations