Moved middleware to application deployed files. Issues with passport, and possibly connect-flash were occuring because of the order getting out-of-sync with the included skeletor module.