Check the auth cookie and confront it in the isLoggedIn() function.

That we can check and make isLoggedIn() return in case of success.

With this the basis of the Login System is done and it seems to work.

Next we will look into 'Logout' functionality.

Signed-off-by: Thiago Farina <tfarina@chromium.org>