Added Views class for doing very basic queries on views.

Updated the view player page to use the 'earned' and 'spent' views