merged from ba/tournament_crud
mend
more active admin, and manager/user registrations and invitations
fixed conflicts
cannot add two teams for the same match
knockout stage is working; just need some refactoring and it is ready
refactor completed; the requirements for knockout stage are working
refactored code in knockout_stage; added knockout_indext to Match table
fixed some minor bugs