A simple skeleton for an authentication scheme using node.js