GUI-1364: Workaround 502 bad gateway errors when a key pair name with 76 chars or more is entered on the create key pair page...

…by moving success notice client-side.  Wrap long key pair name if entered without spaces.  Minor code cleanup.

Fixes https://eucalyptus.atlassian.net/browse/GUI-1364