D3D: Update the context wrapper and move it to a separate header + Remove abusive calls to CreateRS/DSS/BS and useless AddRef/Release cycles.