Make Application class more flexible

The inheritor can now specify a DisplayMode instead of being forced into
the most capable one.
Make CWindow.DisplayMode copy-constructible in python