Moved variables to global
Moved passport out and inported every router
define global.grouplanner
Corrected paths
Export router for middleware