Initial commit
Add handler for checking the current usage
Add require 'date' to fix non-rspec executions.
Add class for storing measurements.
Persist measurements to the database
Add command line runner for testing purposes.
Add forgotten init_db.sql script
Fix specs by requiring the right files.

Specs worked in Guard, but not when running standalone.
Fix DatabaseWriter and specs by testing the right input data.
Drop database table when running init_b
Add Kwh#to_s to fix logging
Extract variable for DatabaseWriter query
Fix runner.rb by including the right gems and using DatabaseWriter.
Add difference to previous measurement.

This also makes it necessary to fix some numeric issues
(comparing Floats).
Make runner runnable from stdin and make database configurable.
Add simple database measurement reader... for a single row.
Add index to measurements time_stamp.
Add simple script to generate a report json.
Extract reader for database config
Add selections and granularities for measurement selects.