Made the marc XML parser work with <collection> as root.

Some marc xml files are <record> as top node and some have <collection>
in the top-level and <record> inside it. This commit make the parser
handle the latter case as well.
Improvements to the Import API.

Providing detailed error codes on errors and better parsing of marc
records.
Utilities for reading openlibrary config.