Vid 1976

Refactoring the new media galleries so they are rendered client side. This handles issues surrounding lazy loading. 
We're also still passing in the parser to this function. We decided we can remove that, right?https://github.com/Wikia/app/blob/VID-1976/extensions/wikia/WikiaPhotoGallery/WikiaPhotoGallery.class.php#L1762