Exportable extension

Resolves #38. This pull request supersedes #159.
The SVG legend is now converted from the DIV legend when needed for download()/place().