Added basic hooks API tests
Merge branch 'master' of github.com:balderdashy/sails
Added advanced routing test for hooks
Easier installable hook default configuration using special __configKey__ key.
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
Make key for configuring installed hook name "name" instead of "identity"
Changed the way hooks load
"module loader" and "userconfig" always load first (defaults + configuration() + load())
Then "defaults" are applied for all other hooks
Then "configure" is run for all other hooks
Then "load" is run for all other hooks
Log errors encountered when lowering Sails
Smarter error message when Sails fails to lift
Remove unused "ready" hook property and moved hook timeout logic
Set default hook timeout back to 10 seconds
Default hook's configKey to its identity
This will normally be taken care of by the moduleloader, but in case a hook is loaded using `require` while loading Sails programmatically, this will ensure that configuration still works.
Significant progress on separating out cookieParsing/session mware for socket requests.
Merge branch 'master' into standalone-sockets-hook