Fixed generation of GLM file.

The file actually loads in ModView now. But the vertex data is
completely screwed up...
Fixed translation and rotation of model mesh.

Texture coordinates are still screwed up for some reason.
Fixed texture coordinates.
Fixed tag orientation.
Tidied up the source code a bit.