Sails-js api server for SPAs