Octopus mothers slam themselves against rocks and eat their own arms before their eggs hatch. Scientists have discovered what leads to the self-destruction.