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