ckan extractor: code cleanup + added a content hash