Security groups

Several integration tests for security groups. These depend on netcat so we should install that in our integration test environment before merging this.