Update each of the relevant media patches with the latest work.

Fastfowards patches from media issues and adds glue patch to
fix series of problems with document embeds on bind/unbind.