More work on xaml loading.

Can now load an actual Window from xaml.