Chemical Kinetics, Stochastic Processes, and Irreversible Thermodynamics (Lecture Notes on Mathematical Modelling in the Life Sciences)