Xhtml output


* Added a fix for pdflatex path issue
* Added xhtml as supported output format
* Added image caching to speed up (x) html generation