Takes a lot of the fixes to the user module and applies them to the group module: provide stdout/stderr in result if available and call fail_json() if the attempted action fails.