hacked something that actually works for redirecting using passport but it seems overly complicated
[#1]
moved the authentication out to it's own module
[#1]
pulled things out further into their own submodules to be tested individually
[#1]