A Basic Geometric Framework for Quasi-Static Mechanical Manipulation