Geometry and Analysis for (G,X)-structures and their deformation spaces