Integrating Geometry in General 2D Dilaton Gravity with Matter