Apply config changes as deferred actions

As config changes can take a while to apply, they are executed as
background tasks, with the state polled via AJAX.