API for updating update sites programatically

Enabling automated plugin updates and installation.