XSS patch work for the auto scale dialogs

https://eucalyptus.atlassian.net/browse/EUCA-7240
https://eucalyptus.atlassian.net/browse/EUCA-7236
https://eucalyptus.atlassian.net/browse/EUCA-7245
https://eucalyptus.atlassian.net/browse/EUCA-7241
https://eucalyptus.atlassian.net/browse/EUCA-7244