Began work on new renderer!

Big job...
 - New unified resource concept.
 - Render state management.
 - Render element management.
More renderer work...

- Made a start on the renderer.
- Made a start on MFStateBlock.
- Materials now carry state blocks.
MFVertex work.
- Removed out-dated MFPoolHeap.
- New renderer working nicely with D3D9.
New renderer almost finished!

- D3D9 and OpenGL are working nicely.
- Added render heap, which clears on each frame.
- Temp state blocks and scratch buffers working properly.
- MFPrimitive, MFFont, MFModel, MFView now working with new system.
- Removed lots of old junk.
D3D11 started, refactoring.

- Added platform specific MFRenderState.
- D3D9 uses state blocks.
- D3D11 work in progress.
- Added more PIX debug info.
Drafted MFShader and MFEffect

- Added MFShader and MFEffect
- Added MFProfile template
- Minor fixes
const-correct experiments.

- Bunch of const-correct changes.
- D bindigns.
More work on the new renderer.

- Tidied up render target support.
- Added RenderTarget sample.
- D bindings fixes.
Add detection of Clang.
Add detection of Mac OS X.
Add more detection of Clang.
Defined "intp" for Clang.
Fix compiler errors for Clang.
Add a stubbed display driver for Mac OS X.
Add code for displaying a basic Cocoa window.
Merge branch 'renderer'