Lots of refactoring. Switch from raw DX11 types to using ATL.