Fix instantiation of redirect
Restructuring, move SessionMgr and request classes