Galileo: A Pseudospectral Collocation Framework for Legged Robots