CDB-1788 Making Dropbox oauth autoclose the window + bugfixes