Allow exporting the library (somewhat; only works for DNA at the
moment).
Next: deal with the issue that file links will break on export (being
index-based), and implement export handlers for types rather than what
it is right now.