A new book theorizes that technology will cause a massive upheaval and a loss of jobs at nearly every level — but argues it will ultimately will be better for the world.