replace HttpResponse w/ JsonResponse

+ fallback for Django<1.7