Finished porting sample code

* Device Resources (handled by Renderer class) contains all D3D and D2D
initialization and management code
* Renderer has been re-worked to use the new DeviceResources class
* Ported Helper functions (like ThrowIfFailed)
* Shader has been reworked to use shared pointer to DeviceResources