NR-617 : Test and fix media archive because of security changes / refactoring

fixes
Merge branch 'devel' of dev.sourcefabric.org:superdesk into devel