Rewrote dx_window to use ATL windowing.

Debugged Direct3D 11 initialization method in dx_window.