Merged common code of def and fgd parser.
Handle base classes in def parser.
Fixed memory leaks in definition manager.
Relaxed parsing of model definitions.
Fixed a bug when attempting to load models which do not have the
skin or frame pointed to by the model definition.