Changed to handling of group creation to enable groups longer than 16 chars

Hi,

We needed to enable group synchronisation and handle groups longer than 16 chars. This patch should do the trick.

It essentially creates group names with an id containing the prefix and then adds a 3 digit number to the end.

We are using this in production and would be keen to merge this back to your master branch!

Thanks,