Pushing a few changes related to the Django API

Incomplete, so don't put it on the server.