Fix a crash with mixed case models

The sails.models object keys are lower case, and Reference Model may be
mixed case
Merge pull request #1454 from moranje/master

Fix a crash with mixed case models
Bump sails-generate dep.
Merge branch 'master' of github.com:balderdashy/sails
Made waterline easier to find in package.json, removed unused require('reportback') from bin/sails-lift
Remove optimist dep, clean lib/configuration/load, added comments to bin/sails-lift.
Remove optimist dep from errors modules.
Improve error/comments in lib/configuration/load
Fix bad path.join() in lib/configuration/load.js
Use path.join() instead of string math for cross-platform safety.
Normalize across the different cli scripts
Comments/strings.
Add layout support to express by using express3-handlebars

Add possibility for handlebars global helpers

Add support for a partials directory to work with handlebars

Fucked up the rebase
Fix this to work if no layout or partials are defined. Also, require path