Clean up some minor issue with JSON

Looking at an issue with cookies when running webtest I came across
a few things that I think are not quite right. Django recommends
to use simplejson, so I switched to that and changed the ``list``
variable to something more sensible.