Simple authentication and session manager in Node.js