Adding support for creating and deleting affinity groups

This pull request adds support for more affinity group API calls in the SDK. I'll make another pull request for the front-end CLI code.