I have been busy with creating new editor plugins for helping the use of asciimathml and asciisvg http://moodle.org/mod/forum/discuss.php?d=121738 but a quick comment to 6) :
If version ASCIIMathML2wMnGFallback.js is used ( link given in http://docs.moodle.org/en/ASCIIMathML#Invoking_via_meta.php )
var AMTcgiloc = "http://www.imathas.com/cgi-bin/mimetex.cgi"; //path to CGI script that
can render a TeX string
can be changed to use any optional tex image fallback renderer - line
node.src = AMTcgiloc + '?' + texstring;
must just be changed to
node.src = AMTcgiloc + texstring;
in function AMTparseMath(str,istex) of that file
I have tested for example a cleaned and modified texdebug.php script as image fallback script (files of tex filter are used if mathml is not supported) and it seems to work ok. This only requires that site has correct latex, dvips and convert paths (other than mimetex and ImageMagick or Ghostscript installed) to produce nice png files.
With this script placed to filter/tex folder it is also possible to use for example package color and change density but it may be better to limit density changes to avoid too large images. Example (demo) of usage of this tiny tex filter based fallback script
Some settings of asciimathml js file must be selected carefully, for example
avoidinnerHTML must be true with tinymce
notifyIfNoSVG could be false to avoid confusion
but basicly the whole integration can be made with one row in theme header.html, meta.php or footer.html:
We could well start with a some basic version of script like that ASCIIMathML2wMnGFallback.js and modify and replace it later with a new version with new features if necessary...