Vid 1976

Refactoring the new media galleries so they are rendered client side. This handles issues surrounding lazy loading. 
It's not being used for anything other than to cache the gallery instances in case they are needed by something later on. I donno, I kinda like doing it this way but it is an over-optimization.