add-to-groups: Rewrite to be more sane.

We create a new .MTREE file now. Also, permissions are handled
correctly.