Allows sails.config.csrf.allowCORS to be set (boolean) in order to specify whether or not you would like /csrfToken to be accessible in cross-domain AJAX requests. Prior to this fix, all CORS requsts to /csrfToken returned a null CSRF token.
Better support for custom session stores via connect adapters, part 1.
Some affordances to make installing easier-- makes all connet session adapters work
Remove connect-* deps
erge branch 'master' into custom-stores
Pull out req/res
Pull req and res mocking into core router's route() method
Getting integration tests to pass again
Fixes many of the tests
Fixes mock-req issue (all header values must be strings or it crashes)-- i should remember to do a PR later
All tests pass, streaming request interpreter logic now consolidated in router.
Merge branch 'master' of https://github.com/balderdashy/sails

Conflicts:
	lib/hooks/csrf/index.js
Allows origins to be specified in the CSRF settings in order to allow third parties access to CSRF tokens. This use case is necessary for APIs hosted on subdomains.
Ensure headers exist
In sails.request(), try to parse json body if simulated http client response is a string. Fail silently and keep the original value if it doesnt worok
:evert "In sails.request(), try to parse json body if simulated http client response is a string. Fail silently and keep the original value if it doesnt worok"

This reverts commit 00154a5098b5334b810bb3c0bd2fa8ccb7da13dc.
Use valid HTTP headers to get req.baseUrl and port

Closes #1702.
Merge branch 'interpreter'
Prevent throwing when getOrigin() is called.
Merge branch 'custom-stores'