Add application state model
Merge pull request #9 from vmrob/application-state-model

Add application state model