User authentication and json web token handling for Sails