DirectX rendering

Implemented the DirectX 3D device rendering and tweaked a few other
things.