Updated to latest library
Update to latest version of tabs library
Moved library location

No longer keeping someone elses 3rd party library in my repo.
Moved the library to a /common directory where all my projects can use
it and it can be updated for all projects at once.
You can find the code managed on Git https://github.com/danvk/dygraphs
Renamed index.php to elec.php
New index page

Working towards the new project that will combine thermostat and
electricity usage data.
Misc updated

The big udpate is adopting safer MySQL database access methods.
Hooks for logging
Working on better (more useful) visualizations for data.  This is a
work-in-progress.
Bugfix

Fix for a longstanding bug that gave the appearance of negative usage.
Previous coding stopped when it reached the stage of "it works".  The
code has been needing a major refactor since then.  Here it is.  And it
still needs more.
Changed which image library I am using
Updated

This might be a poor update.  The last firmware update to my TED5000
borked the posting of usage data.  Before I tracked the problem down to
the TED I had ripped this code open a couple of times.
When I get a fix from the folks at http://www.theenergydetective.com/ I
will have another update to this file