* apos.modal now accepts a "beforeCancel" option. If a beforeCancel method is provided, it is invoked before the user is allowed to close the dialog without saving, and if it invokes its callback with an error, the dialog is not closed.
* Slideshows now confirm before cancelling because there is so much work that can be lost especially when doing lengthy uploads.