Added most Regions code from Prism 4.1 with a few conditionals for WPF.