Euca 7511 - auto-center the dialogs when the size of the window changes


https://eucalyptus.atlassian.net/browse/EUCA-7511

Added the window's resize event to auto-center the dialogs