Climate change threatens to contribute to displacing millions of people by mid-century, creating new challenges - and opportunities - for migrants, host communities and international legal systems.