Fixed a session bug

Because we're using pure Javascript client, using session middleware is
useless and even dangerous.
By keeping in memory the previous session, if you log again with
another user, it doesn't check the new credentials and keeps seeing you
as the previous user!!!