Getting Ready to Refactor MainWindow.xaml

Moving application logic into classes.  Too much business logic in the
UI at this point.