By 2050, millions of people will seek refuge from the effects of climate change in crowded cities. What can we do to prepare?