MSM Thermal: Add a generic temperature controller

Implemented an algorithm for better userspace control and simpler automation
MSM Thermal: Fix CPUFreq driver dependency