don't let people add blank or duplicately named groups
pep 8 fixes
Merge pull request #605 from dimagi/dupe-groups

Dupe groups