refactored to remove Stage3DProxy and clean up gl classes