Compile SVG Snippets To D3.js

This only supports a subset of SVG. It doesn't try to parse everything or get a higher-level understanding of what exactly it is parsing. It just creates an equivalent element and attribute structure. Since it lacks any sophisticated understanding it may be the case that certain SVG properties are not translated correctly.