Expand import functionality to understand export formats.

Depends on #45.