A migrant caravan of more than a thousand people is heading towards the US border from southern Mexico.