To answer two of your questions:
- Depending on the server-side technology you use, you might have no other choice except to put all the generated image files into a folder. You could write a job that regularly deletes older images to save disk space.
- There are a few tools that can convert TeX to MathML, for example TtM (TeX to MathML) or TeX4ht.