Added implicit default for extremely short TTL for static files served via connect/express static middleware when environment==='development'.
Clarified comments
Removed default _cb shim in res (in router) since it was never being called anyway.  New testing stuff will provide a better solution for unit tests (where a TCP port doesnt need to be occupied)
Enhanced the mock req/res - will improve quality of socket interpreter, help w/ internal framework testing, but in particular, allow for built-in helper to make unit/integration testing easier.
Refactoring, breaking pieces apart to reduce closure depth in lift process and provide cleaner access to methods on the Sails app instance.
More cleanup- moved Sails constructor to its own module
Further cleanup
Fixes previous commit (loadHooks - replacing a usage of sails.util.isDictionary() also involves not only checking !array, but also !function)
Delete middleware submodule, since it is reducable to about 5 lines of code now.
Dont rely on sails context in isLocalSailsValid- since it might be invoked w/ legacy constructor usage
Added some notes about factory/constructor/singleton situation when requiring Sails
Explaining Sails.prototype.request in comments.
Added some presentation logic and sails.isLifted flag
Added mock-req and mock-res deps, added request helper.
Better error formatting in bindDefaultHandlers, as well as finishing touched on a good-enough implementation of sails.request() for now (for use in unit/integration tests)
Add 'DELETE' to list of methods where the stream need not be ended manually. Added todo and explanation about next steps.
Formatting
Formatting- plus improved req.param() and req.params.all() so that params dont squash each other.
Refactoring, formatting, comments
Refactored some tests - skipped others