Generic RESTful API backend in Django