Integrated X-Ray System For Advanced Diffraction And Imaging Applications