Drop deprecated code.
Refactor usergroup editor and add comments.
Fix `detectCircular` on root groups.
Fix usergroups 'update' server method.