Issue 606

This merge will fix some long-term issues with hourly hashrates:

* Fix: Properly index the data by hour from oldest to newest record
* Fix: Add 0 hashrate as data for non-existing hours returned from the SQL

Now anyone can rely on the data returned being in proper order, templates are not a lot simpler than before.