Added basic functionality.

Added a simple backbuffer and basic stuff to D2DCanvas.
Tweaked window callbacks.