Better mimetype guessing with libmagic
Size and mimetype should only be computed when needed
Improvements in inheritance