Voting stats

I've added a dashboard to the admin area that shows lots of voting stats.

This pull request isn't finished yet, but I'd like some feedback on it, particularly how I test some of it, as most of the code is either javascript to produce charts or touches the database to run queries.