Ultrafast X-Ray Studies Of Condensed Matter Systems In And Out Of Equilibrium