Moves common queries into query classes
Adds some base stuff for pretty charts
Refactors controllers to use query methods
Refactors profile to make charts work!
Adds a bunch of queries to support the profile charts