Merge 0.10.8.3 on to newui

There is some work left to incorporate all the mathjax changes. For example #205 does not work on newui. Also, there are other bugs, which need to be ironed out.