Add generic debug message method
Rework player login logic to make it work much nicer and cleaner (and fix newspawn handling)