use groups specified in data bag

README.md shows that you can specify a "groups" attribute in a user data bag. That functionality was missing from the actual code, so I added it.