Class Overview status pie chart integrated.

Also starting to refactor some of the heinous code in the controller by moving it to the model. Will refactor more on a new branch.