Added new API for importing IA items.

The new API takes care of the following in addition to what was done
before.
* if openlibrary field is specified in the metadata, it'll be linked to that editon
* covers are added at the time of import
* better error reporting