Facility Location for Congesting Commuters and Generalizing the Cost-Distance Problem