moved around file structure
added debug info
better server side handling (including logging in with name)