Tastypie tutorial from http://django-tastypie.readthedocs.org/en/latest/tutorial.html