Update Document's save and export api to the async saving
Export now calles exportDocumentSync
Save and SaveAs call waitForSavingDone; this is not good enough
yet since it pops up a waiting dialog which is only sometimes
wanted. We probably need a saveSync and saveAsSync, too.