Skeletal animation working

A lot of refactoring to do and some changes to be made.