Refactoring, bug fixes and clean up. Storing local files fails.
Logged exception better.
Accidental type conversion fixed. Harvesting should work. Slightly tested.
XML import support. Somewhat tested.
XML import for DDI3 and added some missing code. Copied harvesting from DDI.
Robustness improvements.