refactoring of ResourceContainer; added resource initialization callbacks; definitions and aliases are stored separately from initialized resources
added ResourceContainer test suite