Font embedding changes

This pull request already contains all bug fixed from master in addition to the changes needed to embed fonts in SVGs.

Basically I only added a optional SVG `defs` section that can be filled with user content (e.g. font data).