Load linked media in to the frame editor when creating a new frame

Also added link cleanup to the media deletion task, and moved task to
be queued on exit, rather than on launch - seems like a more
appropriate place