Basic registration and authentication using Stormpath API (based on passport.js)