Vid 1976

Refactoring the new media galleries so they are rendered client side. This handles issues surrounding lazy loading. 
Let's mention here that this template is being duplicated in `templates.mustache.js` and possibly cross-reference them.