React application controller to manage top-level React components according to window.location