Fixed 'auth-server's code and almost finished implementing the protocol (server-side). Needs some more testing and integrating criptography.