changed to quaternion rotation on vectors

this fixes gimbal-lock and gives a much clearer way of doing
stabilization.