http://scotch.io/tutorials/javascript/easy-node-authentication-setup-and-local