Add download to Runtime Summary

Migrated from:

Temporary rig for anyone who wants it:

var do_header = true;
var csv = '';
for(var runtime_thermostat_summary_id in beestat.cache.runtime_thermostat_summary) {
  var runtime_thermostat_summary = beestat.cache.runtime_thermostat_summary[runtime_thermostat_summary_id];
  if (do_header === true) {
    csv += Object.keys(runtime_thermostat_summary).join(',') + '\n';
    do_header = false;
  }
  csv += Object.values(runtime_thermostat_summary).join(',');
  csv += "\n";
};

var hiddenElement = document.createElement('a');
hiddenElement.href = 'data:text/csv;charset=utf-8,' + encodeURI(csv);
hiddenElement.target = '_blank';
hiddenElement.download = 'runtime_thermostat_summary.csv';
hiddenElement.click();