core: add import/export support

Change-Id: I7e99c737cceb022b8cbd6f026d21181dab3c1f7a
Signed-off-by: Omer Frenkel <ofrenkel@redhat.com>