Enabling and disabling the javascript stuff at login and logout
Fixed a few bugs and added a tournament edit dropdown