Add security group migration

Add function to migrate security groups
Add function to migrate security group rules
Add cleanup of security groups