Authentication middleware for Node.js, based on loginza.ru