Added armature and behavior support in XML libraries descriptors.

- You can now automatically load armature and create behaviors from an
XML file.
- Lots of small cosmetic changes in the code.