Core media

It would be better to just hand this off to a cmd.unlinkAllMedia, which doesn't need to check that all the media objects exist.  It can just empty work.media, after creating an event batch with one work.media.removed for each media in the list.