Ww3 feature/app state

This pull does a few things that were a bit intertwined.  Sorry about the number of changes, but it cleaned up a lot of code:

1. Allows the app to save its state.
2. Created a config file to store all of the views.  Then the views are automatically loaded without hardcoding all of the details. (this was where there was a lot of file changes.)
3. code to query user to make sure they want to leave the page.