Use class based views instead of function based.
Some mild cleanup
Trying out a test serializer to make sure I understand it.