GUI-1384 fixed breakage when changing expired password

fixed broken reference to changepassword screen. re-factored iam permissions check into common code

https://eucalyptus.atlassian.net/browse/GUI-1384