refactored main.django.js and added a few more models to restful-models.js