Sets up react-router and exports it.