A configuration space analysis of bodies in contact. I: 1st order mobility