Gravitational Interactions and Habitability