Initial application migration
Added migrations to create applications from machines
Merge branch 'application'