Initial commit of Application States
Got the state manager working.