massive refactoring to make this code, hopefully, follow actual rails conventions and not be totally static.

Honestly this buys 0 new functionality, but I wanted to start using the rails stack properly.
Added some code to allow the graph or the meter to be forced and it looks like the graph is broken :(
Checking this in and pushing so that Max can have a look at the issues with the graph
Missing from original check-in for some reason
not usind D3 yet.