Rename a few functions
Fix some bugs
Add the actual commands
Load tournaments/frontend.js from app.js