Add function to list all memberships for a user

This is usefull to show a student all of his automatically assigned
groups.
Show groups before and after rating period

Students can now see all rateable groups before the rating period
begins.
They can also see the groups into which they have been assigned after
the rating period has ended.