Issue #905: export functionality (with ability to anonimize on export); fix some import bugs