Rake task to add and remove child groups to groups.

Rebase of #225 to rails3