Rewrites views into class-based views.

This is the first necessary step of my project to get a better control on lookups in grappelli.  This follows #210.

I hope this makes these views more readable :)