Implement the ZAP plugin.
Move the common code in img-metadata-core/