rearrange/cleanup GL texture stuff, and fill out GL cubemap texture functions (still need FBOs)