Our electric grid is old and fraying, but new technology could insulate us from the possibility of widespread blackouts and cyberattacks.