Conflict-fixing rebase of #1064 (Download image metadata develop)

This PR is @jburel work from https://github.com/openmicroscopy/openmicroscopy/pull/1064 rebased on top of develop with all conflicts resolved.