New controller script with mysql backend and thermostat page with the ability to set target temperature