Updated rotation.

After many hours, I finally gave up attempting to make the spline
rotation. I am now just projecting the direction on the XZ plane, and
getting the rotation.
Using quaternions for rotation.

It is easier than going back and forth.
Merged.