Vid 1976

Refactoring the new media galleries so they are rendered client side. This handles issues surrounding lazy loading. 
Hmm, interesting issue.  `galleryData` definitely could have fewer items than the `$items` array if there are problems.  However at this point you already have a gallery model with thumbs built for the original item count.

Probably your best bet is to do a loop through `$items` at the top checking wfFindFile for bum files, then get the real item count before starting.