Residents of the world's slums are battling to carve out a place in the cities of the future.