Theory Of X-Ray Thomson Scattering In Warm Dense Matter