Some code cleanup and refactor.
Some code cleanup and refactor.

t-tran/libcloud,NexusIS/libcloud,Scalr/libcloud,ZuluPro/libcloud,pquentin/libcloud,iPlantCollaborativeOpenSource/libcloud,SecurityCompass/libcloud,ZuluPro/libcloud,erjohnso/libcloud,illfelder/libcloud,t-tran/libcloud,iPlantCollaborativeOpenSource/libcloud,watermelo/libcloud,lochiiconnectivity/libcloud,ByteInternet/libcloud,samuelchong/libcloud,Scalr/libcloud,apache/libcloud,mistio/libcloud,samuelchong/libcloud,wuyuewen/libcloud,illfelder/libcloud,ByteInternet/libcloud,Kami/libcloud,watermelo/libcloud,erjohnso/libcloud,mistio/libcloud,ByteInternet/libcloud,mgogoulos/libcloud,erjohnso/libcloud,mgogoulos/libcloud,NexusIS/libcloud,mgogoulos/libcloud,vongazman/libcloud,StackPointCloud/libcloud,apache/libcloud,illfelder/libcloud,SecurityCompass/libcloud,Kami/libcloud,apache/libcloud,watermelo/libcloud,vongazman/libcloud,wuyuewen/libcloud,DimensionDataCBUSydney/libcloud,andrewsomething/libcloud,vongazman/libcloud,DimensionDataCBUSydney/libcloud,andrewsomething/libcloud,techhat/libcloud,StackPointCloud/libcloud,andrewsomething/libcloud,NexusIS/libcloud,iPlantCollaborativeOpenSource/libcloud,pquentin/libcloud,SecurityCompass/libcloud,wuyuewen/libcloud,samuelchong/libcloud,DimensionDataCBUSydney/libcloud,t-tran/libcloud,StackPointCloud/libcloud,ZuluPro/libcloud,mistio/libcloud,lochiiconnectivity/libcloud,lochiiconnectivity/libcloud,techhat/libcloud,Kami/libcloud,pquentin/libcloud,Scalr/libcloud,techhat/libcloud