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
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'
Set process.env.NODE_ENV in userconfig hook
Other hooks may rely on this value which was previously being set outside of the userconfig hook, but the userconfig hook may change the environment based on the setting local.js.  Updated `configuration/index.js` to provide a fallback default value ("development") if userconfig isn't loaded.
Updated tests to always reset process.env.NODE_ENV before lifting Sails.
Made "--dev" command line option actually work.
Turned off silly logging in test!