Fix issues on Teams page

Made "Enter" in one of the text fields save the team data.

Fixed an issue where changes in TypeScript compilation broke the code
which refreshed the teams list.
Add basic tournament generation code

Added a tournament generator to the Matches page. It isn't yet hooked
into the match scheduler, so it can be used to generate a tournament
bracket, but the matches must be entered manually.