I recently asked a question about this (in the context of Voice Addons) here:
I didn’t see any responses, so I figured I would start working on a pull request myself. I’ve taken a look at the code in org.eclipse.smarthome.extensionservice.marketplace, and I think I can probably figure out what to do, although there will probably be some high-level questions to resolve along the way, such as