Added library import and export via .tar.gz'd XML files.
Added unit tests for library import and export.