Add AppState module
Test AppState module
Merge pull request #6 from f0t0n/app-state

App state