Animation: Root of armature
After a couple of frustrating ideas, I finally made it work.

I parented the objects to two armatures.

The first is Head up, and the second is Head down.

After animate the armatures, I swapped the visibility influence of the armatures in the Modifier Tab storing as keyframes.

I sent my file for analysis. Version 2.79b.


See the images below.