api: add handler for changing the quota of an app

Related to #869.