Totally WPF

And a lot of changes and improvements.