One city bought a hotel to help solve the homeless crisis. It just might work.