Implemented `importer.new_document`.

Still need to implement `importer.add_item` and command-line interfaces.