Gui 1230 VPC support for Elastic IP pages

https://eucalyptus.atlassian.net/browse/GUI-1230
Fixed the duplicated code issue on GUI-1239 and merged it to this branch.