Added device release and resized window on device initialization.
Hakced together support to render to child windows using swap chains.