As new technology allows drilling in unexpected places, oil and gas operations are moving into populated areas.