Fix bug 964783: Create initial revision of new data models.
Migrate data from old models to new models.

In order for the migration to work successfully, the site will have to
run the migrations on this exact commit. Otherwise, the migrations that
these depend will be gone, as the badges app is going to be deleted.
Remove old models.
Document migration process.