updated sails resource to call $apply for all sails.io updates