Use generated URLs rather than constant URLs.

Fixed URLs do not work well with mounted WSGI apps.