added reverse rotation of projection matrix in GLToClipTransform(). Cleaned up code to get the rotation matrix from the CCEGLView
added fucntions to calculation the orientation matrices