Extend fakedom for KaTeX on Node.js

To make KaTeX work on the server we need to add support for the style
attribute and for setting the textContent of an element.
Update KaTeX wrapper to support operation under Node.js

Now we can generate static HTML containing mathematical typesetting
Add KaTeX static build