Use Apache Tika to guess the file extension for copying to the repo.
Added characterisation-with-QLD-check handling.
Changed workflows to use the entity and not the representation
descriptor; this is what later stages were expecting anyway.