#727 package repository extension now supports message based plugin API

PackageAsRepositoryExtensionContract will only exist until we have both api and json based plugins for package repository. I though PackageAsRepositoryExtension is what will be used by Go elsewhere.