Store EntityView js config in parser output

This allows page rendering to be more efficient.

The information can also be passed to OutputPage, where it can be
rendered and used in other ways, skins (e.g. mobile), etc.

Bug: 54215
Bug: 58340
Change-Id: Iacd00a3aa3d48b54f8e516f5720b10b14a518c24