Fix up export widget to properly download files
(rather than open a new window).
Export to SWC: properly download a file
rather than open a new window with the SWC text content in it.