Fix team invites

Team invites didn't work for a number of reasons. This change switches the `TeamMemberAccept` handler to use the Team ID (as noted in a TODO comment) for looking up the team, and also uses the `team.Slug` field for the resulting redirect after a user has accepted the team invite.