Remove passing of ID3D11Device and ID3D11DeviceContext everywhere with reference counting for performance (improves perf by 20%).