Backport of JCLOUDS-106 to 1.6.x

JCLOUDS-106. Add proper support for generation/detection of keypair/security groups to CloudStack.