schema, models, tests updated

* Versions can now have parent versions
* Repos always have a master version
* Model tests updated to reflect these changes