Improve kettle control logic

The previous threshold was too high, the kettle would often not turn on
when there was significant heat demand. Now the threshold is lowered,
and a per-device threshold is added in addition to the total threshold
that was there before.
Add MIT license.