http://www.christopherbiscardi.com/2014/01/07/getting-started-with-snap-and-user-authentication-part-1