Bug fixes to correct issues occurring when no auth provider is present. Restructuring of spec setup to prevent race conditions in module loading by mocha. Conditionally hoist cookie and session middleware when using auth strategies.