Added ability to sort display modes and prevent duplicate display modes from appearing.
Moved dialog methods to config object (which is made to a singleton). Refactored D3D classes.