[Bug 867696] Refactor up KPIGraph and VoteGraph

There could be some more refactoring here, like making k.Graph able to handle loading data from a url, but I don't think they would be worth it.

r?