Change ag_chart_create_svg() to return the length of the SVG document

This is needed later for SVG export
Add SVG export functionality
Uncrustified sources