State management framework

Started the app's state manager framework next add rendering functions
and separate state classes.