Some work on Qwt's MathML engine (#222).

Kind of starting afresh in that we have reverted our use of
devicePoint(relOrigin()). Also made a few changes that we made in
QtMmlWidget back then.