app: cleanup how we present the window
app: change where we set the resource base path

Fixes the app menu it appears.
prefs: start plumbing an preferences dialog.

Once we can get this in place enough to enable VIM, we can merge this
to master.