Vid 2089 Use JSSnippets to load galleries 

This is for tickets like https://wikia-inc.atlassian.net/browse/VID-2089 and https://wikia-inc.atlassian.net/browse/VID-2105, which are for new galleries not loading in places like message wall and article comments, where the HTML is inserted after page load. 

This solution uses JSSnippets to load galleries, and includes an update to JSSnippets that will make it will fire whenever any callback function is pushed to ```window.JSSnippetsStack```. Before, JSSnippets would only work on page load.  @macbre, could you please review this change?

There is another aspect to this ticket that is a fix for message wall. The problem was that the parser instance wasn't getting passed properly to the new media galleries. It is being past now. @armonr did that part. 
We're going to load this JS on every page now to account for places where there were no JSSnippets called on page load, but items that use JSSnippets are loaded on demand.