TeXMath Writer: Improved bracket matching

Previously I was a bit too naive and assumed anything could follow
\left but in fact only certain commands can. This patch enforces these rules.
MathML Reader: Separated width and thickness calculation

They use different attributes and have different default values.
Merge pull request #41 from mpickering/master

Improved bracket matching and space calculation