Refactors some SVG api and includes svg.js in the build