Added handling of text and tspan tags more inline with SVG spec

This was done so it can then be used in your import and export projects(and probably others). For which I'm gonna create 2 more pull requests.