Load most of TMH and its dependencies on demand

This removes 17kb of compressed content from every article pageload.

Change-Id: I8fe508cfe3701356078701588a78847a40d43811
Mingle: https://wikimedia.mingle.thoughtworks.com/projects/multimedia/cards/543
Bug: 55550
Merge "Load most of TMH and its dependencies on demand"