Xelatex mod

version 0.2

* Refactored lots of code to separate image generation from html handling.
* pdf and png images are now cached
* pdf images are rendered using XeLaTeX, so that TTF fonts could be used
* tex output is post-processed to use pdf graphics instead of rendering at compile time.