Vertex attributes v2

Cleaned up version of https://github.com/DrMcCoy/xoreos/pull/21

Tested with kotor and nwn.