Math: add debug logging
Math: use Swift for storing rendered <math> tags
Merge pull request #1603 from Wikia/bac-818-math-ext

BAC-818: Migrate Math extension to use Swift storage