Generate the setup-url server side, closing #499.