First GX texture test; lots of bug fixes and refactors