Vid 1976

Refactoring the new media galleries so they are rendered client side. This handles issues surrounding lazy loading. 
This could probably be simplified to
```php
return count( $this->galleryData );
```