login stuff + moved constants to its own file
Merge branch 'server-login'