Fixes query js to use localized state for Router
Modifies api handlers to bind to correct objects
Refactors auth to use Router instance pattern