Animation CPU

* The CPU part of the animation is in (hopefully working).
* Fixed animation binary read and write to also consider bonehierarchies
and boneoffsets.
* Fixed memory leaks from binary file reading.