Gravity in Curved Phase-Spaces and Two-Times Physics