First commit. Lots of internal things have been dealt with.

Next step should be dialogs and the notification area.
Commit before experimenting with themes. God help us all.
First stably running version. Still incomplete and erroneous though.