State now stores individual app definition versions instead of appRepositories per app

Stores individual app definition per app and version rather than AppRepositories containing all versions per app.