Many changes to the CKAN API v.3 script mostly for Bonn (many formats were missing). We also now save the metadata. And for Bonn the consolidated metadata is written out.