Improve SPA upload (race condition, reload, and feedback). Also fix refresh on app delete.