California's venture into electricity deregulation a decade ago led to what the children's author Lemony Snicket might refer to as a "series of unfortunate events."