Cleaned up middleware (moved most of it into the default settings.js file). Also added passport support, and exposed it on the app object as 'auth'.
Added connect redirect middleware, as well as some minor fixes.
switched router to use 'url' instead of 'path.
Added required body parser, and edited the default settings template.
Wrapped passport, and made things a little easier. No need to do so many things manually, now.
Merge pull request #2 from Morgul/passport

Passport