Add support for natural keys, models reordering and ManyToMany fields