VID-2015 Modularize gallery js & trigger on preview as well
Merge dev, 1 conflict:
extensions/wikia/MediaGallery/scripts/controllers/index.js
Merge dev. Conflict:
extensions/wikia/MediaGallery/scripts/controllers/index.js
Remove unnecessary code
Whitespace fixes
Merge pull request #4938 from Wikia/VID-2015

VID-2015 Modularize gallery js & trigger on preview as well