For communities in the crosshairs of rapid urbanization, climate change and natural disasters, the best defense may be making sure the systems they rely on for food, energy and water are resilient, less dependent on regional systems and take full advantage of new green technology.