added an api test for security_groups

api test to security groups and rules.
add needed support to network_client (json and xml)

Change-Id: I9e35dde3b1f6299ca097acabd531902063cbfe70
Merge "added an api test for security_groups"