[Goes with I33462a8] Support for new gallery.

This goes with I33462a8. It adds support for new
gallery code, by provided tmh specific js for
resizing videos, and for embedding higher than
neccesary resolution media. See I33462a8
for the justification

Change-Id: Ie82c1548b1e6ec048cdac8a3a51b6163b844a242
Merge "[Goes with I33462a8] Support for new gallery."