Fix some bugs with llSetKeyframeMotion, mainly fix rotations, as well as making sure that you cannot have duplicate threads attempting to modify keyframes.
Really clean up the mess that was master/slave sound loop playing code. Serialize it as well so that it persists over restarts.
More fixes to master/slave sound looping.