Fixes, closes issue #13

- Added a ViewController class to handle opening and closing windows.
Don't like sending string messages to the code behind of the main view
model, so using this instead.
- Some general code cleanup.