Refactoring to bring spine-libgdx up to date with spine-csharp and spine-xna.