Fixed creation of rules for security groups, framework simplification and hparams mapping issue fixed.

Change-Id: If1f5525485bca61d46e532f8cf6acc9e4a6428f6