AddOn Repo

1. Is there any examples of how to package an AddOn for the add-on repository anywhere?
2. What are the capabilities of the AddOn repo code? Can you make script installers, or is it just to install modules?