Integrate state architecture in Application class
Add Application implementation for basic window