Moved MediaBag from Shared to Options.

This will allow us to put a MediaBag in WriterOptions.