Adding intermediate variables for arc ball calculations.

Making sure than all transforms occur using quaternions.