More work on the new renderer.

- Tidied up render target support.
- Added RenderTarget sample.
- D bindings fixes.