Rework rotation estimation bits to use quaternions.
Scratch that; need to do this in a branch.