As the California blazes demonstrate, the concentration of homes in urban areas raises risks and costs.