MSM Thermal: Add a generic temperature controller

Implemented an algorithm for better userspace control and simpler automation