[Server] Should listen to a POST request to /login with the parameter: nIckname: String
-If login was successful reply with HTTP 200 and send the session cookie
-Otherwise replies with HTTP 400 (Bad Request) - Exemples: nickname is too long or too short, or inexistent
obs: Nicknames are NOT unique.
[Server] Should attach the current client to a session
[Client] Should handle with the session cookie
[Server] Should reply to any request to a url different then /login made by a non logged client with JSON: { error: "You are not connected." }
[Server] Should listen to a POST request to /login with the parameter: nIckname: String -If login was successful reply with HTTP 200 and send the session cookie -Otherwise replies with HTTP 400 (Bad Request) - Exemples: nickname is too long or too short, or inexistent obs: Nicknames are NOT unique.
[Server] Should attach the current client to a session
[Client] Should handle with the session cookie
[Server] Should reply to any request to a url different then /login made by a non logged client with JSON: { error: "You are not connected." }