Add more django commands

Implements the `syncdb` and `rebuild_index` commands for Django.