VE-1598: Initial commit of gallery nodes
VE-1598: Working gallery mock
Merge branch 'dev' into VE-1598
VE-1598: Building gallery ce from dm data
VE-1598: Update gallery matching pattern
VE-1598: Round tripping working
VE-1598: Gallery caption re-rendering
Merge pull request #5141 from Wikia/newgalleries-not-for-API

Do not output "new galleries" for API requests
VE-1598: Remove unused variables
VE-1598: Do not build GalleryItem
VE-1598: Undoing last commit
Merge branch 'dev' into VE-1598
VE-1598: Galleries cleanup - read for more details

* Listen to “update” on model instead of “childUpdate” so gallery is going to be serenader only once in case of adding (or removing) more than one item
* Do not use jQuery in matchFunction - performance optimization
* Remove methods that are not needed from ve.dm.WikiaGalleryNod
VE-1598: Return old galleries for Parsoid requests
VE-1598: Proper support for alternative rendering
VE-1598: Removed unused argument
VE-1598: Do not animate loading of gallery images in VE
VE-1598: Re-render galleries after VE session
VE-1598: Switch order of events in dm.Node. Remove timeout in ce.GalleryNode
VE-1598: Switch to using Gallery class directly (without GalleryController)

On the way fixed bunch of problems with rendering galleries and organized the code.