use the states provided

This allows animations to be scaled/moved easily
fix use after free

the string created by value.substr(index * 2, 2) is deleted after c_str()
but before strtoul executes. The solution is to use a temporary string
to store the value.
free the texture when we are done with it
initialize variable
Merge pull request #9 from victorsavu3/master

Allow animations to be transformed and various memory problems
We'll stay with LWJGL backend for the examples.
Merge remote-tracking branch 'origin/master'
Documented memory ownership.
Clean up and minor improvements.
Added fields to timeline classes, issue #8.
Look in skin before default skin.
setToBindPose for new slots.
Renamed project to spine-cpp.