add applications model and its associations.
Merge branch 'master' of https://github.com/hddimitrov/rabotlivko

fix model relations