Too hot to handle? Global warming looks set to make many parts of the world uninhabitable. But there are ways to limit the impact, says John Pickrell