Non-isothermal General Ericksen–Leslie System: Derivation, Analysis and Thermodynamic Consistency