various refactor
various refactor

- stop mutating req.query
- use promises
- remove hasOwnProperty usage
- fix crazy comma formatting

onlyurei/sails-auth,tjwebb/sails-auth,langateam/sails-auth,danielsharvey/sails-auth,Benew/sails-auth