Clean up and improve mh_math and mh_basic.

In XeTeX mode, mh_basic uses polyglossia again.