Removed PHP 5.5-only method.
Remove superfluous function call.
Add custom form elements to build unique email value.
Check for valid group being loaded.
Tweak groups_load_by_mail to allow for alternate uses.
Coding style/todos
Merging conflicts.