CanvasWrapper will now add state updates to XML.

Only lineWidth, lineJoin and miterLimit implemented so far.