Plugin modify endpoint: merging upgrade function

Upgrade no longer has its own endpoint. It is now done via the modify endpoint
by specifying an upgrade action.