Tutorial from http://thejackalofjavascript.com/node-webkit-firebase-simple-social-authentication/