Adapting friends request system for group invites

Prob 60%, too tired to continue tonight, maybe get up earlier to make
some more progress...