#727 package repository extension now supports message based plugin API

I think this can be PackageAsRepositoryExtensionContract as well. I don't mind if this is left the way it is, though.