Class-based view support

Basically, Django 1.5 compatibility (minus the tests, which still have to be updated - patches are welcome).