refactored whole project to use sails 0.10.x