Added in the thermal shutdown code.
Merge branch 'features/thermal-shutdown' into development