Replaced references to sails.config.hooks with actual sails.hooks.