Adding d3d framework init code

Almost time to re-architect the whole lot.  Make it more general so I
can add an OpenGL Renderer when the time comes.  I want a better timer (
cross-platform ) and I want to port my mesh generation code from my
other project.  I need to make a library with the math and geometry
stuff from the other project.