Use json from standard python 2.6 library
Support Django 1.6 arguments of GenericRel class.

In Django 1.6 the parameters changed to support multiple-field joins
(see https://code.djangoproject.com/ticket/19385, and
django/django@97774429aeb54df4c09895c07cd1b09e70201f7d)