Implement partial import/export

subtree reuse…

(from redmine: issue id 779, created on 2018-01-22tgradl)