CON-1664 fix swagger warnings
CON-1664 fix undefined wgWikiaHubType
CON-1664 use XML:encodeJSVar
Merge pull request #4806 from Wikia/CON-1664

Con 1664