To svg fix

Ok this is just a preview to discuss it with who has time.

The fixes are mostly about syntax of exported svg , adding missing properties and of course positioning everything in the right place, regardless if is in pathgroup or single , flipped or transformed.

The more important things found till now are :
Top left of image was ignored.
transformMatrix of elements was ignored.
fill rule was ignored.

Don't care about extra spaces now, just to see if some change is higly incorrect
this just to make the svg more readable.
i saw that travis already got wrong. I have to check that .src is definied before trying to split it.