sinatra: include script_name in the endpoint path

This means that if you mount a Sinatra app on a subpath using
Rack::Builder's `map` or something similar, this subpath will be
included in the endpoint name.