Deletes uploaded tmpfiles and reports errors from the storage

This pull request has a couple of things in it:

* if savePackage (in the storage) fails, the registry is not updated
* if savePackage fails, the error will bubble up to the UI
* when addPackage returns, the UI knows that the file is done and will delete it