Change installable-hooks config key to "sails.config.installedHooks" to avoid collision with existing sails.config.hooks
Removed unused var
Don't keep loading hooks if one of them is invalid.
Don't start ORM if sails is already exiting due to previous errors.
Added tests for installable hooks