turn User#all_groups from association into a function

We were not using the functions generated by the association anyway.
Same goes for the functions defined on the association. Plus we could
implement these as simple scopes on Group.