Better mathjax support

Add markdown2Mathjax. This resolves the escaping issues we've had.
Change to $ for inline and $$ for block math for better latex compatibility. Both of these changes are best to do now, while the manual upgrade job is small.

Fixes #70