server changes for github auth/react-router implementation