Replaces most of the ajax API with Django Rest Framework API methods