Add a chat running variable to client

Less magic.
Update regex in server to match requirements

Could not have a dash, only underscore
Add logout logic to server

All project requirements (and then some more) are now fulfilled)