fix #6330 Add default sorting for all entity collections
ref #6333 Add generic support for entity collection sections to allow adding existing entities
refactoring of package names for consistency
Fixing problems with image handling.
image mime types are now set automatically. Although this is a bit of a hack.