More cleanup of import and export, Fixed several issues with item type
settings. Unified import and export error classes to nif_utils.NifError
for sanity sake.