Hook math editing before firepad init, render existing content after firepad init.

Together with recent additions of MathJax and firebase.js as submodules, this makes mathdown testable offline - closes #27.