Vid 1976

Refactoring the new media galleries so they are rendered client side. This handles issues surrounding lazy loading. 
It doesn't look like this raw data is used anywhere after `setGalleryData` iterates over it to create `galleryData`.  As temporary data, I'd suggest passing this data as an argument to `setGalleryData` instead.