Store all open dialogs in a collection for further reference. Refs #466

- Alchemy.currentDialog is now a function that returns the last dialog instantiated.
- Alchemy.closeCurrentDialog() now closes the last dialog instantiated.
Wait 'til the upload dialog is closed before refreshing the archive window. Closes #466