Use Sinatras url method to generate URLs

It takes reverse proxies and Rack routers into account, if present.