Logic for determining mimetype by file extension; foreign localizations for metadata; cleanup.