Update content models to get version_number uniqueness validation.

This includes a database uniqueness constraint on the version_number field.  This can only be created when the existing duplicates have been cleaned up from the db.  This therefore includes a migration to fix the existing duplicates in the db.

It was also necessary to fix a couple of the tests that were failing because no users had been setup.  (The factories were previously creating this by coincidently).