restructure config data
fix login if already logged in
consolidate req.flash messages as locals

No longer need to need to pass req.flash during render.

Currently there are two types of req.flash messages,
the first being alerts, and the other errors.

req.flash('alert', 'this is an alert');
req.flash('error', 'this is an error');