add API endpoint for adding an app to a collection (bug 894639)