Improve environment settings

Optional add local config for every environment. Now switch NODE_ENV
will switch local config.
Merge remote-tracking branch 'upstream/master' into pr-localenv
Autowatch: true in defaults
Backwards compatibility and deprecation warnings for beforeValidation() lifecycle callback (is now beforeValidate()) (same thing for afterValidation)
Backwards compatibility for global 'sails lift' and 'sails console' usage in upgraded v0.9.x projects (w/ the old gruntfile)
Added backwards compatibility (client-side) to pubsub methods.  For folks using the legacy version of the sails.io.js SDK (primarily for pre-existing v0.9 projects)
Normalize output from sails generate api foo (bin/_generate-api)
Before subscribing or watching, ensure that the request originated from a socket.
Fixes bug in publishCreate
At some point I forgot to take out the res.header() deprecation message for sockets (it is definitely implemented)
Changed mdodelDef to modelDef

Changed mdodelDef to modelDef in two places in Backwards compatiblity for lifecycle callbacks
Use `res.serverError` to display view errors, if it exists.
Merge branch 'master' of https://github.com/balderdashy/sails
Update README.md
Better backwards-compatibility checks.  Should improve req.socket vs. socket negotiation in pubsub hook, but this gets it back to where it was, with support for both v0.9 and v0.10 usage (i.e. fixes tests)
Merge branch 'master' of github.com:balderdashy/sails
Fixes bad copy/paste
Merge branch 'localenv' of https://github.com/clarkorz/sails into clarkorz-localenv
Use "environment" setting in local.js if available.  Added comments.
Merge branch 'clarkorz-localenv'