User authentication and api key handeling for sails.js